package com.example.sunny.pojo.weather

import com.google.gson.annotations.SerializedName

/**
 * this class is the model map of the response to the realtime weather
 * @param status:response状态
 * @param result:返回集合
 */
data class RealTimeResponse(val status:String,val result:Result){

    data class Result(val realtime:Realtime)

    /**
     * @param skycon:天气
     * @param temperature:气温
     * @param airQuality:空气质量
     */
    data class Realtime(val skycon:String,val temperature:Float,@SerializedName("air_quality")val airQuality: AirQuality)

    data class AirQuality(val aqi:AQI)

    /**
     * @param chn:空气质量指数
     */
    data class AQI(val chn:Float)
}
